package com.bosc.modeling.pojo.gen;

import java.util.Date;

public class ScoreAEntity implements Comparable{
    private Integer id;

    private String competitionId;

    private String teamId;

    private String teamName;

    private String userId;

    private Double score;

    private Date time;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCompetitionId() {
        return competitionId;
    }

    public void setCompetitionId(String competitionId) {
        this.competitionId = competitionId == null ? null : competitionId.trim();
    }

    public String getTeamId() {
        return teamId;
    }

    public void setTeamId(String teamId) {
        this.teamId = teamId == null ? null : teamId.trim();
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName == null ? null : teamName.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public int compareTo(Object o) {
        ScoreAEntity s = (ScoreAEntity) o;
        if (this.score > s.getScore()){
            return -1;
        }else if (this.score < s.getScore()){
            return 1;
        }else {
            return 0;
        }

    }
}